package com.hddx.servie;

import com.hddx.Dao.UserDao;
import com.hddx.domain.User;
import lombok.Data;

@Data
public class UserServiceImpl implements UserService{
    private UserDao userDao;
    @Override
    public  boolean checkUser(String name,String password){
        User user=userDao.queryUser();
        if(name.equals(user.getName()) && password.equals(user.getPassword())){
            return true;
        }
        return false;
    }
}